package com.zkthink.ceres.promotion.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.zkthink.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import com.zkthink.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 分销关系设置
 * </p>
 *
 * @author kellen
 * @since 2020-08-31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "SalesRelationConfigUpdateDTO", description = "分销关系设置")
public class SalesRelationConfigUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 是有永久有效  1是 2否
     */
    @ApiModelProperty(value = "是有永久有效  1是 2否")
    private Integer isForeverValid;
    /**
     * 有效期
     */
    @ApiModelProperty(value = "有效期")
    private Integer expireTime;
    /**
     * 是否允许抢客 1随时 2不允许 3某段时间之后允许
     */
    @ApiModelProperty(value = "是否允许抢客 1随时 2不允许 3某段时间之后允许")
    private Integer rebindCustomerFlag;
    /**
     * 允许抢客的保护期
     */
    @ApiModelProperty(value = "允许抢客的保护期")
    private Integer protectTime;
    /**
     * 允许分销员之间建立客户关系 1：是 2否 
     */
    @ApiModelProperty(value = "允许分销员之间建立客户关系 1：是 2否 ")
    private Integer salesBindFalg;
    /**
     * 分销员自购返佣开关 1开 2关
     */
    @ApiModelProperty(value = "分销员自购返佣开关 1开 2关")
    private Integer selfBuyReturnCommisionFlag;
    /**
     * 分销员申请条件 1购买任意商品 2下单数 3消费金额
     */
    @ApiModelProperty(value = "分销员申请条件 1购买任意商品 2下单数 3消费金额")
    private Integer applyCondition;
    /**
     * 审核设置 1无需审核 2需要审核
     */
    @ApiModelProperty(value = "审核设置 1无需审核 2需要审核")
    private Integer auditFlag;
    /**
     * 满足的具体条件
     */
    @ApiModelProperty(value = "满足的具体条件")
    private Long applyDetail;
    /**
     * 是否允许邀请下级 1是 2否
     */
    @ApiModelProperty(value = "是否允许邀请下级 1是 2否")
    private Integer isCanInvite;
}
